Skip to content

Add MongoDB extension (v2.2.1) to all PHP base images#8

Merged
abnegate merged 4 commits intomainfrom
copilot/add-mongo-extension-latest
Feb 24, 2026
Merged

Add MongoDB extension (v2.2.1) to all PHP base images#8
abnegate merged 4 commits intomainfrom
copilot/add-mongo-extension-latest

Conversation

Copy link
Contributor

Copilot AI commented Feb 16, 2026

Adds the mongodb PHP extension across all PHP versions (8.0–8.4).

Version 2.2.1 selected as the latest release of the MongoDB PHP driver.

  • Dockerfiles (all 5 versions):

    • PHP_MONGO_VERSION="2.2.1" env var
    • cmake added to build deps (required by bundled libmongoc/libbson)
    • New FROM compile AS mongodb stage: clones with --recursive (submodules), standard phpize && ./configure && make build
    • COPY --from=mongodb for mongodb.so, ini file to enable extension
  • Tests:

    • Root tests.yaml: ini existence, content, and php -m checks for mongodb
    • Per-version tests.yaml: mongodb.so file existence with correct no-debug-non-zts-* path

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: abnegate <5857008+abnegate@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Mongo extension with the current latest version Add MongoDB extension (v1.20.1) to all PHP base images Feb 16, 2026
Copilot AI requested a review from abnegate February 16, 2026 11:27
Co-authored-by: abnegate <5857008+abnegate@users.noreply.github.com>
Copilot AI changed the title Add MongoDB extension (v1.20.1) to all PHP base images Add MongoDB extension (v2.2.1) to all PHP base images Feb 24, 2026
Copilot AI requested a review from abnegate February 24, 2026 05:00
@abnegate abnegate marked this pull request as ready for review February 24, 2026 05:02
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@abnegate abnegate merged commit 133fb73 into main Feb 24, 2026
4 checks passed
@abnegate abnegate deleted the copilot/add-mongo-extension-latest branch February 24, 2026 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants